<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        生日是：{{birth.getFullYear()}}年{{birth.getMonth()}}月
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
                el:"#app",
                data:{
                  birthday:1529032123201
                },
            computed:{
                    birth(){
                        return new Date(this.birthday)
                    }
            }


            })
    </script>
</body>
</html>